package test5

object ListCollect {
  def main(args: Array[String]): Unit = {
    val l=List(1,2,3,5,6.7,"aaa","Bbb","ccc")
    val l2=l.collect({case x:Int=>x})
    println(l2)
  }
}
